//
//  NSStringRFAAdditions.m
//  RFA Manager
//
//  Created by Torsten Kammer on 23.02.08.
//  Copyright 2008 Ferroequinologist.de. All rights reserved.
//

#import "NSStringRFAAdditions.h"


@implementation NSString (RFAAdditions)

- (id)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding
{
    return [self initWithBytes:data.bytes length:data.length encoding:encoding];
}

+ (NSString *)stringWithData:(NSData *)data encoding:(NSStringEncoding)encoding;
{
    return [[[self alloc] initWithData:data encoding:encoding] autorelease];
}

- (BOOL)isCaseInsensitiveEqual:(NSString *)other;
{
	return [self caseInsensitiveCompare:other] == NSOrderedSame;
}

@end
